<?php
defined('_JEXEC') or die('Restricted access');
if (!JFactory::getUser()->authorise('core.manage', 'com_raovat')){
	return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
if(!defined('DS')){
	define('DS',DIRECTORY_SEPARATOR);
}

JLoader::register('RaovatHelper', dirname(__FILE__) . DS . 'helpers' . DS . 'raovat.php');
jimport('joomla.application.component.controller');
$controller = JControllerLegacy::getInstance('Raovat');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();